# 导入模块
print('----------模块-------------------')
import time

import pandas as pd
import numpy as np
import math
from math import sqrt
from math import *
from time import sleep as sl

# sl(2)
print(math.sqrt(9))
print(sqrt(9))

from my_module import testA

print(testA(1, 2))

# 多个from import 同名功能,以最后的为准

from my_module2 import testA

print(testA(1, 2))

from my_module2 import *
print(testA(1,2))
print(testB(1,2))
print(testC(1,2))

print('-------------------包-------------------')
# 包  有联系的模块放在一个文件夹下面,并且取了一个__init__.py文件,这个文件夹就是包

# import python_package_1.module1
# import python_package_1.module2
# python_package_1.module1.info_print1()
print('-------------------包-------------------')
from python_package_1 import *
module1.info_print1()
module2.info_print2()
